.scroll-root {
  border-radius: 4px;
  overflow: hidden;
  --scrollbar-size: 10px;
}

.scroll-viewport {
  width: 100%;
  height: 100%;
}

.scroll-scrollbar {
  padding: 2px;
  @apply bg-gray-50/50 transition-all flex touch-none select-none;
  @apply hover:bg-gray-100;
  @apply dark:bg-gray-800;
}

.scroll-scrollbar[data-orientation='vertical'] {
  width: var(--scrollbar-size);
}
.scroll-scrollbar[data-orientation='horizontal'] {
  flex-direction: column;
  height: var(--scrollbar-size);
}

.scroll-thumb {
  @apply bg-gray-400;
  flex: 1;
  border-radius: var(--scrollbar-size);
  position: relative;
}
/* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */
.scroll-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
}

.ScrollAreaCorner {
  background: yellow;
}
